package com.bicon.base.data.pojo.botu;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * app版本信息
 * </p>
 *
 * @author zhoutyianqi
 * @since 2018-07-25
 */
@TableName("app_version")
public class AppVersion extends Model<AppVersion> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private String id;
    /**
     * 类型：iOS,Android
     */
    private String type;
    /**
     * 版本号
     */
    @TableField("version_name")
    private String versionName;
    /**
     * 版本号码
     */
    @TableField("version_code")
    private Integer versionCode;
    /**
     * 下载地址
     */
    private String url;
    /**
     * 热更新json配置
     */
    @TableField("hot_update")
    private String hotUpdate;
    /**
     * 版本说明
     */
    private String info;
    /**
     * 文件大小
     */
    private Integer size;
    /**
     * 次数
     */
    private Integer times;
    /**
     * 状态:0未发布，1已发布
     */
    private String state;
    /**
     * 强制更新状态(0:非强制，1:强制)
     */
    @TableField("forced_updating_state")
    private String forcedUpdatingState;
    /**
     * 删除标志：0正常，1删除
     */
    @TableField("logic_delete")
    private String logicDelete;
    /**
     * 创建时间
     */
    @TableField("create_date")
    private Date createDate;
    /**
     * 更新时间
     */
    @TableField("update_date")
    private Date updateDate;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getVersionName() {
        return versionName;
    }

    public void setVersionName(String versionName) {
        this.versionName = versionName;
    }

    public Integer getVersionCode() {
        return versionCode;
    }

    public void setVersionCode(Integer versionCode) {
        this.versionCode = versionCode;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getHotUpdate() {
        return hotUpdate;
    }

    public void setHotUpdate(String hotUpdate) {
        this.hotUpdate = hotUpdate;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public Integer getSize() {
        return size;
    }

    public void setSize(Integer size) {
        this.size = size;
    }

    public Integer getTimes() {
        return times;
    }

    public void setTimes(Integer times) {
        this.times = times;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getForcedUpdatingState() {
        return forcedUpdatingState;
    }

    public void setForcedUpdatingState(String forcedUpdatingState) {
        this.forcedUpdatingState = forcedUpdatingState;
    }

    public String getLogicDelete() {
        return logicDelete;
    }

    public void setLogicDelete(String logicDelete) {
        this.logicDelete = logicDelete;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "AppVersion{" +
        "id=" + id +
        ", type=" + type +
        ", versionName=" + versionName +
        ", versionCode=" + versionCode +
        ", url=" + url +
        ", hotUpdate=" + hotUpdate +
        ", info=" + info +
        ", size=" + size +
        ", times=" + times +
        ", state=" + state +
        ", forcedUpdatingState=" + forcedUpdatingState +
        ", logicDelete=" + logicDelete +
        ", createDate=" + createDate +
        ", updateDate=" + updateDate +
        "}";
    }
}
